﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using text.Utils;

namespace text
{
    /// <summary>
    /// acc 的摘要说明
    /// </summary>
    public class acc : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            string name = context.Request["act"];
            string sql = string.Format("select * from users where account ='{0}'", name);
            DataSet ds = DbHelper.Query(sql);
            if (ds.Tables[0].Rows.Count > 0)
            {
                context.Response.Write("false");
            }
            else
            {
                context.Response.Write("true");
            }
        }


        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}